package com.xucy.springboot.entity;

import java.util.HashMap;
import java.util.Map;


/**
 * 功能描述
 *
 * @param
 * @author lmd
 * @Description 请求结果信息
 * @date 2019/2/26
 * @return
 */
public class ResultMsg {

    private static final long serialVersionUID = 1L;

    private int state = 200;    //响应状态

    private String msg;         //响应信息

    private Object data;        //响应体


    public ResultMsg() {
    }

    public ResultMsg(int state, String msg) {
        this.state = state;
        this.msg = msg;
    }

    public ResultMsg(int state, String msg, Object data) {
        this.state = state;
        this.msg = msg;
        this.data = data;
    }


    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
